package com.example.service;


import com.example.entity.Student;
import com.example.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;

/**
 * Create with Intellij idea
 * User:鲁智明
 * Date:2018/10/15
 * Time:9:56
 */
@Service
public class StudentService implements Serializable {
    @Resource
    private StudentMapper studentMapper;

    public Student findById(int id){
        return studentMapper.findById(id);
    }
}
